{{#extends @html/widgets/widget.html}}
{{:widget_div_name}}plaintext{{/:widget_div_name}}

{{:widget_body}}
	<div class="body- content">
		{{?widget.content.text}}
			<p>{{widget.content.text | safe}}</p>
		{{?:}}
			<p>Текст еще не введен.</p>
		{{/?}}
	</div>
{{/:widget_body}}

{{:widget_title}}
{{?widget.title}}{{widget.title}}{{?:}}Заголовок не задан{{/?}}
{{/:widget_title}}

{{:settings}}
<div class="popup-widgets" id="settings_container">
	<form action="" id="settingsform">
	<input type="hidden" name="widget_id" value="{{settings.id}}" id="widget_id" />
	<h2 class="title-">Текстовое объявление</h2>
	<div class="content-">
		<fieldset class="fieldset- header- text-">
			<label>Заголовок</label>
			<input type="text" name="title" value="{{settings.title}}" />
			<div class="comment-">Не более 100 символов</div>
		</fieldset>
		<fieldset class="fieldset- tags- wysiwyg-">
			<label>Текст</label>
			<!--input type="text" name="text" value="{{settings.text}}" /-->
			<textarea name="text" id="text{{settings.id}}" cols="60" rows="10" class="mceEditor light">{{settings.text}}</textarea>
			<script type="text/javascript">
				setTimeout("tinyMCE.execCommand('mceAddControl', false, 'text{{settings.id}}')",1);
			</script>
		</fieldset>
	</div>
	{{@:settingsbutton}}
	</form>
</div>
{{/:settings}}
